﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OS
{
    public static class CPU
    {
        public static string accumulator_R = "    ";
        public static bool toggle_C;
        public static int instructionCounter_IC;
        public static string instructionRegister_IR;
        public static int SI = 0;
        public static int PI = 0;
        public static int TI = 0;
        public static int IOI = 0;
        public static int PTR_Register;

        /// <summary>
        /// Clears the interrupt registers
        /// </summary>
        public static void ClearInterruptRegisters()
        {
            Trace.WriteToTrace("Clearing interrupts: SI <- 0, PI <- 0, TI <- 0");
            SI = 0;
            PI = 0;
            TI = 0;
        }
    }
}
